home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VEXTIMEV.S < prev    next >
Text File  |  1993-03-26  |  1KB  |  46 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Exchange timer interupt vector.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vex_timv
  11. _vex_timv:
  12. ;    .cargs    #8,handle.w,newtim.l,oldtim.l,cnvtim.l
  13.  
  14. handle      =         8
  15. newtim      =         10
  16. oldtim      =         14
  17. cnvtim      =         18
  18.  
  19.           link        a6,#0
  20.  
  21.           clr.l     -(sp)                ;* Old vector here; contrl[9-10].
  22.           move.l    newtim(a6),-(sp)    ;* New vector in contrl[7-8].
  23.  
  24. ;          VContrl    #118
  25.           move.w    handle(a6),-(sp)    ; contrl[6]
  26.           clr.l     -(sp)                ; contrl[5,4]
  27.           clr.l     -(sp)                ; contrl[3,2]
  28.           clr.w     -(sp)                ; contrl[1]
  29.           move.w    #118,-(sp)            ; contrl[0]
  30.  
  31.           subq.l    #4,sp                ;* -> ptsout
  32.           move.l    cnvtim(a6),-(sp)    ;* -> intout
  33.           subq.l    #8,sp                ;* -> ptsin, intin
  34.           pea        16(sp)                ;* -> contrl
  35.  
  36.           move.l    sp,d1
  37.           jsr        vditrap
  38.  
  39.           move.l    oldtim(a6),a0        ;* Return old vector
  40.           move.l    -4(a6),(a0)         ;* from contrl[9-10].
  41.  
  42.           unlk        a6
  43.           rts
  44.  
  45.           end
  46.